package co.yixiang.common.annotation;

import co.yixiang.common.properties.FileProperties;
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.*;


/**
 * @author 13409
 */
@JacksonAnnotationsInside
@JsonSerialize(using = PrefixionJsonSerializer.class)
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Sensitive {
    /**
     * 前置不需要打码的长度
     */
    String prefix() default "";

    SensitiveStrategy strategy() default SensitiveStrategy.IMAGE;

}
